File.classPrototype.readLine
- Instance of
- Return value
-
/*String*/
Description
Input operation. Reads string terminated by new line character from file.
Example
let file = File();
file.create("protocols.txt");
file.writeLine("http").write(80);
file.setReadPosition(0);
let name = file.readLine();
let port = file.read();
file.close();
console.write(name, " ", port);
Expected output
http 80